package com.falcon.generator.java.domain;

import com.falcon.config.GeneratorConfig;
import com.falcon.enums.GeneratorTypeEnum;
import com.falcon.constants.FtlConstant;
import com.falcon.generator.java.JavaClassGenerator;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author zongf
 * @since 2023-05-18
 **/
@Slf4j
@Service
public class RequestCodeGenerator extends JavaClassGenerator {


    @Override
    protected GeneratorConfig.ClassConfig getClassConfig() {
        return this.config.getRequest();
    }

    @Override
    protected String getTemplate() {
        return FtlConstant.FTL_REQUEST;
    }

    @Override
    public GeneratorTypeEnum codeType() {
        return GeneratorTypeEnum.Java_Request;
    }
}
